home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / XFREE / patches / XFREE_ALPHA.patch < prev   
Encoding:
Text File  |  1995-10-29  |  1.5 KB  |  69 lines

  1. *** /home/kmg/XFree86-3.1.1-1/xc/programs/Xserver/hw/xfree86/common/compiler.h    Sun Feb 19 11:10:06 1995
  2. --- common/compiler.h    Mon Jun 19 20:18:34 1995
  3. *************** extern int textinx();
  4. *** 74,79 ****
  5. --- 74,81 ----
  6.   
  7.   #ifdef __GNUC__
  8.   
  9. + #if defined(__i386__)
  10.   #ifndef FAKEIT
  11.   #ifdef GCCUSESGAS
  12.   
  13. *************** inl(port)
  14. *** 246,251 ****
  15. --- 248,264 ----
  16.   }
  17.   
  18.   #endif /* FAKEIT */
  19. + #elif defined(__alpha__)
  20. + #define inb(p)        _inb((p))
  21. + #define inw(p)        _inw((p))
  22. + #define inl(p)        _inl((p))
  23. + #define outb(p,v)    _outb((v),(p))
  24. + #define outw(p,v)    _outw((v),(p))
  25. + #define outl(p,v)    _outl((v),(p))
  26. + #endif
  27.   
  28.   #else /* __GNUC__ */
  29.   #if !defined(AMOEBA) && !defined(MINIX)
  30. *** /home/kmg/XFree86-3.1.1-1/xc/programs/Xserver/hw/xfree86/common_hw/IODelay.s    Thu Sep 15 00:02:00 1994
  31. --- common_hw/IODelay.S    Tue Jun 13 21:05:49 1995
  32. *************** glenn@cs.utexas.edu)
  33. *** 33,38 ****
  34. --- 33,55 ----
  35.    *   100-MHz CPU, produce at least a delay of 1,000ns.
  36.    */ 
  37.   
  38. + #if defined(__alpha__)
  39. +        /*
  40. +         * Really ought to use the cycle counter
  41. +         * here but that would require an easy
  42. +         * way to get at the frequency of the
  43. +         * cycle counter (it's in the hwrpb).
  44. +         */
  45. +        .globl GlennsIODelay
  46. + GlennsIODelay:
  47. +        bis     $31, 1000, $1
  48. + loop:  subl    $1, 1, $1
  49. +        bne     $1, loop
  50. +        ret     ($26)
  51. + #else
  52.   #include "assyntax.h"
  53.   
  54.       FILE("DACDelay.s")
  55. *************** delay_it:
  56. *** 50,52 ****
  57. --- 67,70 ----
  58.       JNE    (delay_it)
  59.       RET
  60.   
  61. + #endif
  62.